Use Case - Create a Helix QAC Project Manually using File Selection

The preferred means of creating a Helix QAC project is by the synchronization method, as demonstrated previously. However, there are two common situations in which you might choose to add files manually to a project:

  • You simply cannot build your code project using the synchronization method. For example, perhaps the code is only built on a remote server on which Helix QAC cannot be run.
  • There have been minor changes to an existing project, such as the addition of a new source file, and you do not wish to go through a complete rebuild of your code project.
One of the key advantages of using the synchronization method will be lost in the above cases, in that information about the specifics of the build (for example, compiler settings) will not automatically be part of the Helix QAC project, and so these details may have to be added manually as well.

After starting the Helix QAC GUI, Click to create a new Helix QAC Project,

As in the other use cases, you now select the directory in which the project is to reside, which would typically be a top-level source directory. You select an appropriate compiler from the list, and the empty project is then created. Ideally, the next step would be to add files via the synchronization method as in other use cases. However, in this case, you right-click on the project folder to which the file(s) is to be added, in the Files panel, then select Add File(s).

Selecting this menu option displays a file selection dialog:

In this use case, we are adding a single file:

Cgicc.cpp

Following selection, the file appears in the Files panel.

The project (containing just this single file) can then be analyzed as usual.

Alternatively, you can add multiple files simultaneously by repeating the above "Add Files(s)" process and selecting multiple files. Use the File/Directory Pattern at the bottom of the dialog to display the files that you want to be available for selection, for example *.cpp to display the project’s C++ files.